package com.SweetWhite.UserManagement.model.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.SweetWhite.UserManagement.model.bean.Hero_User;
import com.SweetWhite.UserManagement.model.mapper.UserMapper;


@Service
public class SelectService {
	@Autowired
	private UserMapper mapper;
	@Transactional
	public List<Hero_User> getHero_User(){
		System.out.println("已进入SelectService");
		return mapper.selectAll();	
	}
	@Transactional
	public Hero_User getHero_UserByName(String realName) {
		System.out.println("已进入SelectService");
		return mapper.selectByName(realName);
	}
	@Transactional
	public Hero_User getHero_UserByNo(int No) {
		System.out.println("已进入SelectService");
		return mapper.selectByNo(No);
	}
	@Transactional
	public List<Hero_User> selectByPage(int pagef) {
		// TODO Auto-generated method stub
		return mapper.selectByPage(pagef);
	}
	@Transactional
	public List<Hero_User> getByName(String name){
		System.out.println("已进入SelectService");
		return mapper.getByName(name);
		
	}
}
